package com.jwater.core.manager.common.model;

import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;

import com.jwater.core.common.param.ParamMap;
import com.jwater.core.common.param.ParamMapImpl;

/**
 * @description: 核心配置内容
 * @author: jnner
 * @createDate: 2021/2/5
 * @version: 1.0
 */
public class CoreConfigInfo {
    private Map<String, Map<String, NodeInfo>> nodes = new ConcurrentHashMap<>();
    private ParamMap masters = new ParamMapImpl();
    private ParamMap proxys = new ParamMapImpl();
    private ParamMap props = new ParamMapImpl();
    private Map<String, String> logins = new ConcurrentHashMap<>();

    public Map<String, Map<String, NodeInfo>> getNodes() {
        return nodes;
    }

    public void setNodes(Map<String, Map<String, NodeInfo>> nodes) {
        this.nodes = nodes;
    }

    public ParamMap getMasters() {
        return masters;
    }

    public void setMasters(ParamMap masters) {
        this.masters = masters;
    }

    public ParamMap getProxys() {
        return proxys;
    }

    public void setProxys(ParamMap proxys) {
        this.proxys = proxys;
    }

    public ParamMap getProps() {
        return props;
    }

    public void setProps(ParamMap props) {
        this.props = props;
    }

    public Map<String, String> getLogins() {
        return logins;
    }

    public void setLogins(Map<String, String> logins) {
        this.logins = logins;
    }

}